﻿; (function (window, undefined, $) {
    $(document).ready(function () {
        var gridopt = {
            url: options.listUrl,
            colModel: [
                    { display: '编号', name: 'Id', width: "5%", sortable: true, hide: true, align: 'left', iskey: true },
                    { display: '众筹项目名称', name: 'ProjectName', width: "7%", sortable: false, align: 'left' },
                    { display: '支持金额(元)', name: 'Amount', width: "7%", sortable: false, align: 'left' },
                    { display: '筹款天数', name: 'CollectDays', width: "7%", sortable: false, align: 'left' },
                    { display: '分类', name: 'ProjectClassName', width: "7%", sortable: false, align: 'left' },
                    { display: '筹款人姓名', name: 'MemberName', width: "7%", sortable: false, align: 'left' },
                    { display: '筹款人会员编号', name: 'MemberId', width: "7%", sortable: false, align: 'left' }
            ],
            sortname: "Id",
            sortorder: "ASC",
            title: false,
            rp: 15,
            usepager: true,
            showcheckbox: false
        };
        var xjgrid = new xjGrid("gridlist", gridopt);

        $("#btnReFund").click(function () {
            alert("全部退款啦");
            $.ajax({
                url: "/Admin/FinanceMgr/ReFundByProjectId",
                type: "Post",
                success: function(data) {
                    alert(data);
                },
                data: "projectId=" + $("#projectId").val()//这里没有参数可以不穿
            });
        });

    });

})(window, undefined, jQuery);